# -*- coding:utf-8 -*-
'''

@File : grpcClient.py

@Author: 爸爸

@Date : 2019/5/13

@Desc :
'''
import grpc
import grpc_pb2
import grpc_pb2_grpc

def main():
    channel=grpc.insecure_channel("localhost:8989")
    stub=grpc_pb2_grpc.grpcServerStub(channel)
    resp=stub.SayHello(grpc_pb2.HelloReq(req="lallal"))
    print(resp.resp)
    # for i in range(100):
    #     resp=stub.SayHello(grpc_pb2.HelloReq(req=f"{i}"))
    #     print(resp.resp)

if __name__ == '__main__':
    main()